package com.his.j259w264.pojo;

import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 角色-权限表(RolePermission)实体类
 *
 * @author EdgeYu
 * @since 2021-09-16 11:17:11
 */

@ApiModel(value = "RolePermission", description = "角色-权限表")
public class RolePermission implements Serializable {
    private static final long serialVersionUID = -87861323325890485L;

    @ApiModelProperty(name = "id", notes = "${column.comment}", dataType = "Integer", required = true)
    private Integer id;
    /**
     * 角色id
     */
    @ApiModelProperty(name = "roleId", notes = "角色id", dataType = "Integer", required = true)
    private Integer roleId;
    /**
     * 权限id
     */
    @ApiModelProperty(name = "permissionId", notes = "权限id", dataType = "Integer", required = true)
    private Integer permissionId;
    /**
     * 创建者id
     */
    @ApiModelProperty(name = "createId", notes = "创建者id", dataType = "Integer", required = true)
    private Integer createId;
    /**
     * 编辑者id
     */
    @ApiModelProperty(name = "editorsId", notes = "编辑者id", dataType = "Integer", required = true)
    private Integer editorsId;
    /**
     * 创建时间
     */
    @ApiModelProperty(name = "created", notes = "创建时间", dataType = "Date", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date created;
    /**
     * 编辑时间
     */
    @ApiModelProperty(name = "edited", notes = "编辑时间", dataType = "Date", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date edited;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(Integer permissionId) {
        this.permissionId = permissionId;
    }

    public Integer getCreateId() {
        return createId;
    }

    public void setCreateId(Integer createId) {
        this.createId = createId;
    }

    public Integer getEditorsId() {
        return editorsId;
    }

    public void setEditorsId(Integer editorsId) {
        this.editorsId = editorsId;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getEdited() {
        return edited;
    }

    public void setEdited(Date edited) {
        this.edited = edited;
    }

}
